package fi.iki.joker.mobilogger.db;

import java.util.Date;

/**
 * Memo beans are used as transfer objects to load and save memo data to/from database and move the
 * entry as and entity between app logic and other interfaces.
 * 
 * The memo bean exists mainly for consistencys sake. Other data objects (which actually go across other
 * interfaces than just DB - have their own beans. Even if memo handling is only between DB and app logic,
 * to be consistent we do it like that here too.  
 * 
 * @author juhak
 *
 */

public class MemoBean {
	private int id;
	private String title;
	private String contents;
	private Date created;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContents() {
		return contents;
	}
	public void setContents(String contents) {
		this.contents = contents;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public String toString() {
		return "["+this.id+"]-"+this.title;
	}
}
